package cn.stylefeng.guns.modular.system.service;

import cn.stylefeng.guns.modular.dto.UserDTO;
import cn.stylefeng.guns.modular.system.entity.AppUserInfo;
import cn.stylefeng.guns.modular.system.entity.AppUserInfoRes;
import cn.stylefeng.guns.modular.system.vo.UserInfoVO;
import cn.stylefeng.guns.sys.modular.system.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;

import java.math.BigDecimal;
import java.util.List;

/**
 * @ClassName AppUserInfoService
 * @Author lzy
 * @Date 2020/1/11 16:09
 * @VERSION 1.0
 **/

public interface AppUserInfoService extends IService<AppUserInfo> {

    List<AppUserInfoRes> findAppUserInfo(String startTime, String endTime, String account, String phone, List<String> subUserIds);

    void deleteUserInfo(Long id);

    void insertUser(UserInfoVO userInfoVO);

    User selectUserById(Long superiorAgentId);

    AppUserInfo selectAppUserInfo(Long id);

    void updateAppUserInfo(UserDTO build);

    void updateRate(Integer id, BigDecimal exchangeRate);

    Integer getAccountCount(String phone);

    Integer getEmailCount(String email);

    List<String> findUserIdsByProxyId(String toString);

    List<AppUserInfo> selectUserInfoByUserId(String userId);
}
